<template>
	<div class="goods">
		<goods-list-item v-for="(item, index) in goods" :goodsItem="item" :key="index"/>
	</div>
</template>

<script>
	//导入
	import GoodsListItem from './GoodsListItem.vue'
	
	export default {
		name: "GoodsList",
		props: {
			goods: {
				type: Array,
				default(){
					return []
				}
			}
		},
		components: {
			GoodsListItem
		}
	}
</script>

<style scoped="scoped">
	.goods {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-around;
	}
</style>
